MILKDROP_PRESET_VERSION=201 PSVERSION=3 PSVERSION_WARP=3 PSVERSION_COMP=3 [preset00] fRating=5.000000 fGammaAdj=1.980 fDecay=0.500 fVideoEchoZoom=1.000 fVideoEchoAlpha=0.500 nVideoEchoOrientation=3 nWaveMode=4 bAdditiveWaves=0 bWaveDots=0 bWaveThick=1 bModWaveAlphaByVolume=0 bMaximizeWaveColor=0 bTexWrap=1 bDarkenCenter=0 bRedBlueStereo=0 bBrighten=0 bDarken=1 bSolarize=0 bInvert=0 fWaveAlpha=1.059 fWaveScale=1.821 fWaveSmoothing=0.000 fWaveParam=0.000 fModWaveAlphaStart=0.910 fModWaveAlphaEnd=1.300 fWarpAnimSpeed=1.459 fWarpScale=2.007 fZoomExponent=1.00000 fShader=0.000 zoom=0.99990 rot=0.00000 cx=0.500 cy=0.500 dx=0.00000 dy=0.00000 warp=0.01000 sx=0.99990 sy=1.00000 wave_r=1.000 wave_g=0.940 wave_b=0.970 wave_x=0.500 wave_y=0.490 ob_size=0.000 ob_r=0.000 ob_g=0.000 ob_b=0.000 ob_a=1.000 ib_size=0.260 ib_r=0.250 ib_g=0.250 ib_b=0.250 ib_a=0.000 nMotionVectorsX=64.000 nMotionVectorsY=48.000 mv_dx=0.000 mv_dy=0.000 mv_l=5.000 mv_r=1.000 mv_g=1.000 mv_b=1.000 mv_a=0.000 b1n=0.000 b2n=0.000 b3n=0.000 b1x=1.000 b2x=1.000 b3x=1.000 b1ed=0.000 wavecode_0_enabled=0 wavecode_0_samples=512 wavecode_0_sep=0 wavecode_0_bSpectrum=0 wavecode_0_bUseDots=0 wavecode_0_bDrawThick=0 wavecode_0_bAdditive=0 wavecode_0_scaling=1.00000 wavecode_0_smoothing=0.50000 wavecode_0_r=1.000 wavecode_0_g=1.000 wavecode_0_b=1.000 wavecode_0_a=1.000 wavecode_1_enabled=0 wavecode_1_samples=512 wavecode_1_sep=0 wavecode_1_bSpectrum=0 wavecode_1_bUseDots=0 wavecode_1_bDrawThick=0 wavecode_1_bAdditive=0 wavecode_1_scaling=1.00000 wavecode_1_smoothing=0.50000 wavecode_1_r=1.000 wavecode_1_g=1.000 wavecode_1_b=1.000 wavecode_1_a=1.000 wavecode_2_enabled=0 wavecode_2_samples=512 wavecode_2_sep=0 wavecode_2_bSpectrum=0 wavecode_2_bUseDots=0 wavecode_2_bDrawThick=0 wavecode_2_bAdditive=0 wavecode_2_scaling=1.00000 wavecode_2_smoothing=0.50000 wavecode_2_r=1.000 wavecode_2_g=1.000 wavecode_2_b=1.000 wavecode_2_a=1.000 wavecode_3_enabled=0 wavecode_3_samples=512 wavecode_3_sep=0 wavecode_3_bSpectrum=0 wavecode_3_bUseDots=0 wavecode_3_bDrawThick=0 wavecode_3_bAdditive=0 wavecode_3_scaling=1.00000 wavecode_3_smoothing=0.50000 wavecode_3_r=1.000 wavecode_3_g=1.000 wavecode_3_b=1.000 wavecode_3_a=1.000 shapecode_0_enabled=1 shapecode_0_sides=4 shapecode_0_additive=0 shapecode_0_thickOutline=0 shapecode_0_textured=1 shapecode_0_num_inst=1 shapecode_0_x=0.500 shapecode_0_y=0.500 shapecode_0_rad=2.12158 shapecode_0_ang=0.00000 shapecode_0_tex_ang=0.06283 shapecode_0_tex_zoom=0.46943 shapecode_0_r=1.000 shapecode_0_g=1.000 shapecode_0_b=1.000 shapecode_0_a=1.000 shapecode_0_r2=0.990 shapecode_0_g2=1.000 shapecode_0_b2=1.000 shapecode_0_a2=0.000 shapecode_0_border_r=1.000 shapecode_0_border_g=1.000 shapecode_0_border_b=1.000 shapecode_0_border_a=0.100 shapecode_1_enabled=0 shapecode_1_sides=4 shapecode_1_additive=0 shapecode_1_thickOutline=0 shapecode_1_textured=0 shapecode_1_num_inst=1 shapecode_1_x=0.500 shapecode_1_y=0.500 shapecode_1_rad=0.10000 shapecode_1_ang=0.00000 shapecode_1_tex_ang=0.00000 shapecode_1_tex_zoom=1.00000 shapecode_1_r=1.000 shapecode_1_g=0.000 shapecode_1_b=0.000 shapecode_1_a=1.000 shapecode_1_r2=0.000 shapecode_1_g2=1.000 shapecode_1_b2=0.000 shapecode_1_a2=0.000 shapecode_1_border_r=1.000 shapecode_1_border_g=1.000 shapecode_1_border_b=1.000 shapecode_1_border_a=0.100 shapecode_2_enabled=0 shapecode_2_sides=4 shapecode_2_additive=0 shapecode_2_thickOutline=0 shapecode_2_textured=0 shapecode_2_num_inst=1 shapecode_2_x=0.500 shapecode_2_y=0.500 shapecode_2_rad=0.10000 shapecode_2_ang=0.00000 shapecode_2_tex_ang=0.00000 shapecode_2_tex_zoom=1.00000 shapecode_2_r=1.000 shapecode_2_g=0.000 shapecode_2_b=0.000 shapecode_2_a=1.000 shapecode_2_r2=0.000 shapecode_2_g2=1.000 shapecode_2_b2=0.000 shapecode_2_a2=0.000 shapecode_2_border_r=1.000 shapecode_2_border_g=1.000 shapecode_2_border_b=1.000 shapecode_2_border_a=0.100 shapecode_3_enabled=0 shapecode_3_sides=4 shapecode_3_additive=0 shapecode_3_thickOutline=0 shapecode_3_textured=0 shapecode_3_num_inst=1 shapecode_3_x=0.500 shapecode_3_y=0.500 shapecode_3_rad=0.10000 shapecode_3_ang=0.00000 shapecode_3_tex_ang=0.00000 shapecode_3_tex_zoom=1.00000 shapecode_3_r=1.000 shapecode_3_g=0.000 shapecode_3_b=0.000 shapecode_3_a=1.000 shapecode_3_r2=0.000 shapecode_3_g2=1.000 shapecode_3_b2=0.000 shapecode_3_a2=0.000 shapecode_3_border_r=1.000 shapecode_3_border_g=1.000 shapecode_3_border_b=1.000 shapecode_3_border_a=0.100 per_frame_init_1=avg = 1; per_frame_init_2=index = int(rand(8)); per_frame_init_3=index2 = int(rand(8)); per_frame_init_4=ran = 1; per_frame_init_5=spb_=.3; per_frame_init_6=sdev = .1; per_frame_init_7=trel2 = rand (100)/100; per_frame_1=dec_med = pow (0.9, 30/fps); dec_slow = pow (0.98, 30/fps); per_frame_2=beat = bass+mid+treb; per_frame_3=avg = avg*dec_slow + beat*(1-dec_slow); per_frame_4=is_beat = above(beat, .2+avg+peak) * above (time, t0+.1); per_frame_5=t0 = is_beat*time + (1-is_beat)*t0; per_frame_6=peak = is_beat * beat + (1-is_beat)*peak*dec_med; per_frame_7=index = (index + is_beat) %16; per_frame_8=index2 = (index2 + is_beat*bnot(index))%12; per_frame_9= per_frame_10=spb = min(t0-t0a + .01,2); t0a = t0; per_frame_11=spb_ = if(is_beat,spb_ *.9 +.1*spb, spb_); per_frame_12=mindev = min(min(abs(spb-spb_),abs(spb*2-spb_)),abs(spb-spb_*2)); per_frame_13=sdev = if(is_beat,sdev * .9 + .1*pow(mindev+.02,2),sdev); per_frame_14= per_frame_15=q20 = avg; q21 = beat; per_frame_16=q22 = peak+.1; per_frame_17=q24 = is_beat; per_frame_18=q27 = index; q28 = index2; per_frame_19= per_frame_20=trel = trel + 1/fps/spb_*4; itrel = int(trel); per_frame_21=q25 = above(itrel, itrel_); per_frame_22=q30 = itrel%2; per_frame_23=itrel_ = itrel; per_frame_24=q31 = trel/8-int(trel/8); per_frame_25= per_frame_26=ma = ma + peak/fps ; per_frame_27=mx=mx*dec_med+(1-dec_med)*cos(ma); per_frame_28=my=my*dec_med+(1-dec_med)*sin(ma+trel/16); per_frame_29=q15 = mx ; q16 = my ; q17 = ma; per_frame_30= per_frame_31=//first par: off; second: on per_frame_32=sw1 = if(sw1,bnot(q24*bnot(int(rand(10)))),q24*bnot(int(rand(20)))); per_frame_33=sw2 = if(sw2,bnot(q24*bnot(int(rand(40)))),q24*bnot(int(rand(80)))); per_frame_34=sw3 = if(sw3,bnot(q24*bnot(int(rand(10)))),q24*bnot(int(rand(100+10000*sdev)))); per_frame_35= per_frame_36=//********* variation parameters warp shader per_frame_37=q6 = sin(time/15)*sin(time/27)*.1; //zz weighting per_frame_38=q10 = sin(time/8); //ring per_frame_39=q10 = q10*q10*.1; per_frame_40=q11 = 1.5+sin(time/7.8); //zoom uv2 per_frame_41=q12 = if(below(sdev,.02)*bnot(q8),q25,1); //go per_frame_42=q13 = .5+sin(time/17); //pow noise per_frame_43=q19 = sin(time/5.3)*.4; //sunpos per_frame_44= per_frame_45=//********* variation parameters comp shader per_frame_46=q3 = sw1;//mirror per_frame_47=q4 = .02/sdev; //unused ### per_frame_48=q5 = max(min(4*sin(trel/64)-3,1),0)*.4; //water per_frame_49=q7 = below(sdev,.004)*(index2%2); //flash per_frame_50=q2 = abs(q19)*sqrt(q15*q15+q16*q16); //avoid black - frame eq2 per_frame_51= per_frame_52=trel2 = trel2+.003*q22*q22/fps; per_frame_53=tmp = sin(trel2); per_frame_54=tmp = 20*tmp-19; per_frame_55=q8 = tmp*above(tmp,0)*(4/max(q22-4,0.2)+4); // dyn zoom per_frame_56=q26 = above(q22,16)*(q22-16)*2; //# ok??? per_frame_57= per_frame_58=tmp = index2/6; per_frame_59=q14 = abs((tmp-int(tmp))-.5)*6+1; //ang multi #### per_frame_60= per_frame_61=tmp =sin(trel/4*3.14); //sym rot per_frame_62=jmp = jmp + above(tmp,.5)*tmp/fps*8*sw2; per_frame_63=q9 = jmp*equal(q14,1)*below(sdev,0.04)+time*above(sin(q17/23),.9); per_frame_64=q18 = tmp*tmp/2 * bnot(q8) * sw3; //waber per_frame_65= per_frame_66=monitor = avg; per_frame_67=rot = .003; per_frame_68=warp = .1; per_frame_69=zoom = 1+(avg-log(sdev))/200+min(q26,1); per_frame_70=//dx = tmp*.01*above(abs(tmp),.95); warp_1=`static const float quality = 4, depth = 3.5; warp_2=`float3 rsl, rsl2, rss, ret1,screen3,cloud; warp_3=`float2 uv0, uv1, uv2; warp_4=`float tmp, lprof,lprof2,sprof,sprof2, n, stone,stone_lit,sun,sky; warp_5=`float hormask, lavmask,ilavmask,cldmask,ncloud; warp_6=`static float lav_gnd = 0,hordist = 8, tele = 1; warp_7=`static float2 mov = float2 (q5,q6); warp_8=` warp_9=`float hq_n (float3 uvi) {return lum(tex2D (sampler_noise_hq ,uvi.xy));} warp_10=`float noise2 (float3 uvi) {return tex2D (sampler_noise_lq,uvi*8);} warp_11=` warp_12=`float noise4 (float2 uvi) { float n1,n2,n3,n4,zv; zv = 0.006*time; warp_13=` n1 = lum(tex2D(sampler_noise_hq, (uvi))); warp_14=` n2 = lum(tex2D(sampler_noise_hq, (uvi*2+zv))); warp_15=` n3 = lum(tex2D(sampler_noise_hq, (uvi*4+zv))); warp_16=` n4 = lum(tex2D(sampler_noise_hq, (uvi*8+4*zv))); warp_17=` return n1 + n2/2 + n3/4 + n4/8;} warp_18=` warp_19=`float noise3 (float3 uvi) {float arg; warp_20=`return clamp(tex2D (sampler_noise_hq,uvi.xy/16)-.5,-.25,.25)*2 warp_21=` +(tex2D (sampler_noise_hq,uvi.xy/8)-.5)/4 warp_22=` +(tex2D (sampler_noise_hq,(uvi.x-sin(uvi.y*2))/2))/12;} warp_23=` warp_24=`float3 rs_lav (float2 uvi, float berg) { float z; float2 rs; warp_25=` z = 8/(uvi.y)*(q8-4*berg); z = clamp(z,-8,80*hordist); //#final check ! warp_26=` rs.x = uvi.x*z ; rs.y = z; warp_27=` rs = mul(rs,float2x2(q3,q4,-q4,q3)); warp_28=` return float3(rs/64 + mov,z); } warp_29=` warp_30=`float3 rs_sky (float2 uvi, float berg) { float z; float2 rs; warp_31=` z = 8/(uvi.y - berg-.5); z = clamp(z,-32,1); warp_32=` rs.x = (uvi.x)*z ; rs.y = z; warp_33=` rs = mul(rs,float2x2(q3,q4,-q4,q3)); warp_34=` return float3(-rs/64+mov/-128,z); } warp_35=` warp_36=`shader_body { warp_37=`uv1 = uv*aspect.xy-float2(.5,q7); warp_38=`uv1 = mul(uv1,float2x2(q1,q2,-q2,q1)); warp_39=`screen3 = float3 (float2(uv.x*2-1,uv.y-.5)*aspect.yx,1); warp_40=` warp_41=`//CLOUDS warp_42=`uv2 = rs_sky(uv1,0);tmp = 0; warp_43=`for (int n = 1; n <= 3; n++) { warp_44=` uv2 = rs_sky(uv1,tmp*.03); warp_45=` tmp = saturate(lum(tex2D (sampler_noise_hq,uv2 +.03*noise4(uv2*2))-.5));} warp_46=`tmp = saturate(pow(tmp,1.4) * sign(tmp)); warp_47=`cloud = tmp; warp_48=`ncloud = saturate(1-tmp); warp_49=` warp_50=`//DUNES warp_51=`for (n=1; n <= quality; n++) { warp_52=` rsl = rs_lav(tele*uv1,lav_gnd); //#spiele an uv-Vorfakt - zoom, auch bei sky ! warp_53=` lprof = noise3(rsl); warp_54=` lav_gnd -= lprof/quality*depth/sqrt(rsl.z); } warp_55=`rsl = rs_lav(tele*uv1,lav_gnd); warp_56=`stone = noise2(rsl); warp_57=` warp_58=`float3 rsl3 = rsl + float3(-.1,.0,0); warp_59=`lprof2 = noise3(rsl3); warp_60=`stone_lit = .3+4*saturate(.2+lprof-lprof2); warp_61=` warp_62=`//------------------- masking ----------------------------------------- warp_63=`lavmask = saturate (4*hordist-rsl.z/18) * (rsl.z >= 0); // # ! warp_64=`ilavmask = saturate(1-lavmask); warp_65=` warp_66=`//---------------- skylight first----------------- warp_67=`ret1 = ncloud*uv.y*float3 (.3,.4,1); warp_68=`ret1 += cloud*2; warp_69=`ret1 *= ilavmask; warp_70=` warp_71=`//----------------lava / stone ----------------- warp_72=`ret1 += stone *stone_lit*lavmask * float3(1,.4,.0); warp_73=` warp_74=` warp_75=`ret = 1-exp(-ret1*2+.1+.1*sin(time/7)); warp_76=` warp_77=`float4 noise9 = tex3D(sampler_noisevol_hq, warp_78=` ((float3(uv1.y-uv2.x,uv2.x+uv1.x,uv.x*uv.y)*q27 warp_79=` )*texsize.xyy*texsize_noisevol_hq.zww warp_80=` ).xyz* warp_81=` float3(1,1,0)*0.05 + warp_82=` time*float3(0,0,1)*q29 warp_83=` ); warp_84=`if(ret.x> q21*roam_cos.y && ret.x<= q24*roam_sin.x)ret.y -= (noise9).x*.5; warp_85=`if(ret.y> q22*roam_sin.x && ret.y<= q25*roam_cos.x)ret.z -= (noise9).y*.5; warp_86=`if(ret.z> q23*roam_cos.x && ret.z<= q26*roam_sin.y)ret.x -= (noise9).z*.5; warp_87=`} warp_88=` warp_89=`written by martin warp_90=`END comp_1=`float3 ret1, neu; comp_2=`float2 rs,rs2,uv1; comp_3=`shader_body comp_4=`{ comp_5=`float2 uv2; comp_6=`float ang2, c, s; comp_7=`uv -= 0.5; comp_8=`uv *= aspect.xy; comp_9=` comp_10=`float dist = 1; comp_11=`float inten = 1; comp_12=`float mask = 0; comp_13=`ret1 = 0; comp_14=`int anz = 3; comp_15=`float n = 0; comp_16=`while (n <= anz) { comp_17=` ang2 = 6.28*n/anz; comp_18=` c = cos(ang2); comp_19=` s = sin(ang2); comp_20=` uv2.x = uv.x*c - uv.y*s; comp_21=` uv2.y = uv.x*s + uv.y*c; comp_22=` comp_23=` dist = 1-frac(1.0/anz*n+time/2); //evtl sqrt ! comp_24=` comp_25=` inten = sqrt(dist)*(1-dist)*8; comp_26=`float2 uv3 = frac(3*uv2*dist + 0.5+float2(q1,q2)*.05); comp_27=` neu = 1*GetPixel(uv3) -GetBlur1(uv3+.003); comp_28=` ret1 = max(ret1,neu*inten); comp_29=`n++; comp_30=`} comp_31=` comp_32=`rs2 = .5*cos(uv*13) - ret1;; comp_33=`float dots = saturate(.05/length(rs2)) ; comp_34=` comp_35=` comp_36=`ret = 2*ret1.gbr + 21*dots*(.1+3*ret1) ; comp_37=`ret = ret1*4; comp_38=`}